import json

from config import BASE_PATH


def build_data(file_name):
    with open(BASE_PATH + "/data/" + file_name, encoding="utf-8") as fr:
        data = json.load(fr)
        new_list = list()
        for i in data:
            tmp = tuple(i.values())
            new_list.append(tmp)
        return new_list


if __name__ == '__main__':
    res = build_data("../data/login_data.json")
    print(res)